import request from '@/utils/axios';
import constant from '@/utils/constant';

/**
 * @param {Object} 发送短信
 */
export function createCode(url, param) {
	return request({
		url: constant.baseUrl + url,
		method: 'post',
		data: param,
	})
}

export function showMsg(vueObj,text, msg, type) {
	vueObj.$toast({
		text: text || '请输入' + msg + "!",
		type: type || 'warning',
		duration: 1000
	});
}
